function addModule(){
	window.location.href="addEmailModule.jsp";
}

function modifyModule(){
	window.location.href="addEmailModule.jsp?arg=1";
}
$(function(){
	$.ajax({
		type: "get",
		dataType: "text",
		url: "/meileche/email.do?action=0&moduleName=邮件模板",
		success: function(v){
			if(v != ""){
				eval("var info = "+ v);
				$("#moduleInfo").html(info.moduleContent);
				$("#btnAdd").hide();
			}else{
				$("#btnModify").hide();
			}
		}
	});
});